package model

import "time"

type User struct {
	ID        uint `gorm:"primaryKey"`
	CreatedAt time.Time
	Name      string `gorm:"default:''"`
	Email     string `gorm:"type:varchar(100);uniqueIndex"`
	Password  string
	Avatar    string `gorm:"size:255;default:''"`
	Role      string `gorm:"default:'user'"`
	JoyImg    string `gorm:"size:255;default:''"`
	JoyName   string `gorm:"size:255;default:''"`
	JoyTitle  string `gorm:"size:255;default:''"`
}
